﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ViewState : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void BtnSubmit_Click(object sender, EventArgs e)
    {
        string Url;
        Url = "DisplayValue.aspx?ViewId=2";
        this.ViewState["FName"] = TxtFName.Text;
        this.ViewState["LName"] = TxtLName.Text;
        this.ViewState["Email"]= TxtEmail.Text;
        this.ViewState["Dob"] = TxtDob.Text;
         
        Response.Redirect(Url);
        
    }
}
